package com.shuyu.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(description = "活动管理")
@TableName("tbl_activity_tmp")
public class ActivityTmp implements Serializable {
    private static final long serialVersionUID = 7583713344060881359L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "活动名称")
    private String name;
    @ApiModelProperty(value = "活动介绍")
    private String introduction;
    @ApiModelProperty(value = "活动类型  1：集卡消卡；2：转盘；3：促销活动；4：积分活动")
    private Integer type;
    @ApiModelProperty(value = "活动开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @ApiModelProperty(value = "活动结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @ApiModelProperty(value = "审核状态0待审核 1审核完成 2 审核驳回")
    private Integer auditStatus;
    @ApiModelProperty(value = "活动产品列表")
    private transient List<ActivityProductTmp> activityProductList;

    private Date createTime;
    private Date modifyTime;
    private Integer aId;
}
